Skip to content

Conversation

ConorMacBride
Copy link
Member

@ConorMacBride ConorMacBride commented Feb 14, 2024

Fix for

>                   warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
E                   pytest.PytestUnraisableExceptionWarning: Exception ignored in: <_io.FileIO [closed]>
E                   
E                   Traceback (most recent call last):
E                     File "/home/runner/work/pytest-mpl/pytest-mpl/tests/test_deterministic.py", line 116, in test_config
E                       actual_metadata = Image.open(str(baseline_image)).info
E                   ResourceWarning: unclosed file <_io.BufferedReader name='/tmp/pytest-of-runner/pytest-0/test_config34/baseline/test_mpl.png'>

@ConorMacBride ConorMacBride added the infrastructure PRs related to the package and tests etc label Feb 14, 2024
@ConorMacBride ConorMacBride merged commit 2b1b8d7 into matplotlib:main Feb 14, 2024
@ConorMacBride ConorMacBride deleted the fix-unclosed-test-files branch February 14, 2024 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure PRs related to the package and tests etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant